package com.micheal.pattern.proxy.jdk;

/**
 * Created by micheal on 2018/3/29/0029.
 */
public class JDKProxyTest {

    public static void main(String[] args) {

        Thing thing = (Thing) new Agent().getInstance(new Principal());
        System.out.println(thing.getClass());
        thing.lookHouse();
    }

}
